package thefirst.addresscode.model;

import java.sql.SQLException;
import java.util.List;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;
@Repository
public class AddressCodeDaoImpl implements AddressCodeDao {
	@Resource(name="sqlSessionTemplate")
	private SqlSessionTemplate sqlSessionTemplate;
	@Override
	public List<AddressCodeVO> findAddressByZipcode(String dong) throws SQLException {
		return sqlSessionTemplate.selectList("addressCode.findAddressByZipcode",dong);
	}

}
